package com.atguigu.quartz;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author 张晓
 * @create 2020-12-03 22:20
 */
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
@Component
public class MyJob {
    public void doIt() {
        System.out.println("执行任务。。。当前线程=" + Thread.currentThread().getName());
    }
}
